Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 4 - Printing Messages / Printing Messages Reference


Printing Messages

This section describes the messages that you can override to develop a printing extension or printer driver. This section presents these messages in categories that relate to the tasks for which you use each message.

Included with each message description is a list of specific result codes returned by QuickDraw GX's default implementation of the message. In addition to these result codes, you may also receive file-system, memory, and resource errors. For a complete listing of these errors, see Inside Macintosh: C Summary or Inside Macintosh: Pascal Summary.

A number of the printing messages can return communications result codes, which are listed in Table 4-2. The result codes section for each of these messages refers to this table.
Table 4-2 Communications errors returned by many of the printing messages
Result codeExplanation
gxAioTimeoutThe operation timed out
gxAioBdRqstStateAsynchronous communications are in an unexpected state for the operation
gxAioBadConnThe I/O connection reference number is not valid
gxAIOInvalidXferBad values were discovered in the data transfer
structure
gxAioNoRqstBlksNo request blocks are available to process the request
gxAioNoDataXferThere is no pointer to a data transfer structure specified
gxAioTooManyAutosAutomatic status request is already active
gxAioNoAutoStatThe connection is not configured for automatic status request
gxAioBadRqstIDThe I/O request identifier is not valid
gxAioCantKillThe communications protocol does not support
I/O termination
gxAioAlreadyExistsThe protocol-specific data was already specified
gxAioCantFindThe protocol-specific data was not found
gxAioDeviceDisconnThe printer was disconnected from the computer
gxAioNotImplementedThe specified function is not implemented
gxAioOpenPendingThere is already a connection opened
gxAioNoProcotolDataThere was not any protocol-specific data specified in the request
gxAioRqstKilledThe I/O request was terminated
gxBadBaudRateThe specified baud rate is not valid
gxBadParityThe specified parity value is not valid
gxBadStopBitsThe specified stop-bits value is not valid
gxBadDataBitsThe specified data-bits value is not valid
gxBadPrinterNameThe specified printer name is not valid
gxAioBadMsgTypeThe message type specified in the data transfer structure is not valid
gxAioCantFindDeviceThe target device could not be located
gxAioOutOfSeqA non-atomic SCSI request was submitted in the wrong order

You must define each of your message overrides with the interface that is shown in each message description. Each override must match the formal declaration of the message that it is overriding: it must take the same parameters, in the same order, as shown in
the example. You can provide your own name (whatever name you like) for each override that you define.

For clarity, Apple printing extensions and printer drivers apply the same prefix to each override they include. For example, the Apple Personal LaserWriter SC printer driver provides overrides named SD_ShutDown, SD_DefaultPrinter, SD_DespoolPage, and so on. The background picture printing extension includes overrides named BWInitialize, BWShutdown, and BWDespoolPage. You can choose to follow a similar convention for naming your message override functions. For example, you could name your override of the GXCountPages messages MyCountPages.

Most of the message descriptions also include a "Special Considerations" section, which describes whether you can send the message yourself and whether you can totally override the message. For messages that you can partially override, this section includes information about whether to forward the message prior to or after performing your own tasks.


Subtopics
Storage Messages
Print Object Messages
Application Messages
Paper-Handling Messages
Color Profile Messages
Spooling Messages
Despooling Messages
Dialog Box Messages
Universal Imaging Messages
Raster Imaging Messages
PostScript Imaging Messages
Vector Imaging Messages
Device Communications Messages
Compatibility Messages
Finder Dialog Box Messages
Finder Menu Messages

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help